package com.course.service;
/*
@author By 林中小鸟
@package  com.self.introduction.config.service
@create 2021 - 09 - 2021\9\23 0023
@QQ: 357182695
@Em: themooncss@gmail.com
*/

import com.baomidou.mybatisplus.extension.service.IService;
import com.course.entity.Permission;
import com.course.entity.User;

import java.util.Collection;
import java.util.Set;

public interface UserService extends IService<User> {
    Set<String> getUserRolAsSet(User userLogin);

    Set<String> getUserPermissionAsSet(User userLogin);

    Set<Permission> getUserMenuAsSet(User userLogin);

    boolean linkRoles(Long uid,Collection<Long> roles);

    boolean unLinkRoles(Long uid);
}
